package com.hexu.event.service;

import com.hexu.event.dao.UserDao;
import com.hexu.event.entity.User;

import java.util.List;

public class UserService {
    UserDao userDao = new UserDao();

    //充值
    public boolean addSystemBalance(User user){
        return userDao.addSystemBalance(user);
    }

    //返回所有用户信息(密码除外)
    public List<User> getUserInformation(){
        return userDao.getUserInformation();
    }

    //返回用户数量
    public int userNumber(){
        return userDao.userNumber();
    }

    //修改用户信息
    public boolean updateUser(User user){
        return userDao.updateUser(user);
    }

    //读取单个用户信息
    public User getAUser(String phoneNumber,User user){
        return userDao.getAUser(phoneNumber,user);
    }

    //冻结、解封
    public boolean freeze(User user){
        return userDao.freeze(user);
    }

}
